package com.leyou.client;

import com.leyou.item.pojo.Brand;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "item-service")
public interface BrandClient {

    /*
    根据ID查询品牌
     */
    @RequestMapping(value = "/brand/{id}",method = RequestMethod.GET)
    public Brand queryBrandById(@PathVariable("id") Long id);
}
